Skip to content

try fixing lerna publish issue#888

Closed
Michael Ignoto (Ignotos) wants to merge 1 commit intomainfrom
fix/rocket/try-lerna-publish-fix
Closed

try fixing lerna publish issue#888
Michael Ignoto (Ignotos) wants to merge 1 commit intomainfrom
fix/rocket/try-lerna-publish-fix

Conversation

@Ignotos
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 10, 2026 21:46
@changeset-bot
Copy link

changeset-bot bot commented Mar 10, 2026

⚠️ No Changeset found

Latest commit: 49671ba

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates release/publishing configuration to properly scope Lerna publish settings and enables manual triggering of the publish workflow.

Changes:

  • Fix Lerna configuration by moving registry under command.publish (instead of being nested under command.version).
  • Add workflow_dispatch to allow manually running the publish GitHub Actions workflow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
lerna.json Corrects Lerna command configuration structure by separating version and publish settings.
.github/workflows/publish.yml Adds manual workflow trigger support (workflow_dispatch) for the publish pipeline.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 3 to +6
on:
push:
branches: [main]
workflow_dispatch:
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding workflow_dispatch allows manually running this workflow from any selected ref/branch, which can unintentionally publish packages to npm from a non-main commit (since this workflow has an npm token and runs yarn publish-ci). Consider gating the job/step so publishing only occurs when github.ref is refs/heads/main (or otherwise explicitly require/validate the target ref via inputs) to avoid accidental or unsafe releases.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants